# To change this template, choose Tools | Templates
# and open the template in the editor.
$LOAD_PATH.unshift File.join(File.dirname(__FILE__),'../..','ext_pr1/lib')
require 'ext_pr1_v4'

def sum(seq) 
  seq.reduce(0,:+)#{|accu,elem| accu + elem}
end

def prod(seq)
  seq.reduce(1,:*)#{|accu,elem| accu * elem}
end

